<?php

use think\migration\Seeder;
use think\facade\Db;

class InsertSystemParam extends Seeder
{
    /**
     * Run Method.
     *
     * Write your database seeder using this method.
     *
     * More information on writing seeders is available here:
     * http://docs.phinx.org/en/latest/seeding.html
     */
    public function run()
    {
        DB::name('system_param')->insertAll([
            [
                'param_id'=>1,
                'param_scope'=>'系统参数',
                'param_scope_sort'=>'基础配置',
                'param_type'=>'textarea',
                'param_code'=>'base_admininfo',
                'param_name'=>'系统对接人信息',
                'param_des'=>'设置系统对接人信息'
            ],
            [
                'param_id'=>2,
                'param_scope'=>'系统参数',
                'param_scope_sort'=>'基础配置',
                'param_type'=>'radio',
                'param_code'=>'base_is_open_nav',
                'param_name'=>'导航是否默认展开',
                'param_des'=>'设置导航是否默认展开'
            ],
            [
                'param_id'=>3,
                'param_scope'=>'系统参数',
                'param_scope_sort'=>'基础配置',
                'param_type'=>'radio',
                'param_code'=>'base_is_accordion_nav',
                'param_name'=>'导航是否手风琴模式',
                'param_des'=>'设置导航是否手风琴模式'
            ],
            [
                'param_id'=>4,
                'param_scope'=>'系统参数',
                'param_scope_sort'=>'安全配置',
                'param_type'=>'number',
                'param_code'=>'base_login_error_num',
                'param_name'=>'登录次数',
                'param_des'=>'登录失败次数达到设定值时将锁定ip，0为不限制'
            ]
        ]);
    }
}